<template>
	<view>
		<view class="search-wrap">
			<u-search bg-color='#fff' placeholder="搜索客户" :show-action="false" :action-style="{color: '#fff'}"
				@change="search" v-model="keyword"></u-search>
		</view>
		<view class="content">
			<view class="u-page__item">
				<u-collapse :value="['1']" :border='false'>
					<u-collapse-item name="1" title="明源地产云客公司">
						<u-button class="buttonClass" text="哥伦布时代广场" @click="choice(1)"></u-button>
						<u-button class="buttonClass" text="明源云广场" @click="choice(2)"></u-button>
					</u-collapse-item>

				</u-collapse>
			</view>
			
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: '',

			}
		},
		components: {

		},
		onLoad() {

		},
		onShow() {

		},
		methods: {
			choice(index){
				if(index==1){
					uni.setStorageSync('changeItem', '哥伦布时代广场');
				}else{
					uni.setStorageSync('changeItem', '明源云广场');
				}
			},
			search(val) {
				
				uni.navigateBack({
				    delta: 1
				});
			}
		}
	}
</script>



<style lang="scss" scoped>
	
	.content{
		padding: 0px 10px 10px;
	}
	.u-page__item{
		box-sizing: border-box;
		border-radius: 20rpx;
		background-color: #fff;
		.buttonClass{
			margin-bottom: 20rpx;
			color: $u-primary;
			background-color: $u-primary-light;
			border: 0;
		}
	}
	.search-wrap {
		box-sizing: border-box;
		padding: 10px 10px;
	}
</style>
